There are 2 XCMDs and 1 XFCN supplied. It is assumed that you know what an XCMD is and that you know how to install it. If you don't, then these are not for you.
(1) DDIsInstalled
This XFCN returns TRUE if DiskDoubler INIT is installed and FALSE otherwise. You might use this in a Hypercard script as follows:
if DDIsInstalled() then
DDCompress "MyFile"
end if
(2) DDCompress and DDExpand
These two XCMDs require that DiskDoubler INIT be installed. Call DDIsInstalled() before using these to verify that DD is installed.
The syntax is:
DDCompress|DDExpand FullPath [,FullPath]
For example, to compress and then expand a file "MyFile" in folder "MyFolder" on a disk "MyDisk":
DDCompress "MyDisk:MyFolder:MyFile"
DDExpand "MyDisk:MyFolder:MyFile"
To compress and then expand a folder "MyFolder" on a disk "MyDisk":
DDCompress "MyDisk:MyFolder:"
DDExpand "MyDisk:MyFolder:"
To compress and then expand everything on the disk "MyDisk":
DDCompress "MyDisk:"
DDExpand "MyDisk:"
A second argument is optional, and specifies an output file. It can be used only if the first argument is a file; you cannot compress a folder or a disk to a different output file.
Source code is provided for these XCMDs in case you would like to create your own XCMDs.
Salient has reserved the names "DDCompress", "DDExpand", and "DDIsInstalled". We may also use "DDCombine", "DDSplit" and "DDJoin" and "DDFileInfo".
Please do not use these names for your XCMDs, as we may use all of these names in the future.